<div [ngSwitch]="mode">
  <app-project-detail-view *ngSwitchCase="CRUD_MODE.VIEW"  [id]="id"></app-project-detail-view>
  <app-project-detail-edit *ngSwitchCase="CRUD_MODE.EDIT"  [id]="id" ></app-project-detail-edit>
  <app-project-detail-edit *ngSwitchCase="CRUD_MODE.CREATE" [id]="0"></app-project-detail-edit>
  <div *ngSwitchDefault>loading...</div>
</div>

<p-confirmDialog header="Confirmation" icon="pi pi-exclamation-triangle" width="425"></p-confirmDialog>